
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>    
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> 
   
<input type="hidden" id="app_download_url_android" value="${app_download_url_android}" />
<input type="hidden" id="app_download_url_ios" value="${app_download_url_ios}" />
<input type="hidden" id="fn_download_app_url" value="" />
    <div id="main">
        <div id="content" class="download-content">
            <p class="invit accept">你已成功接受<span class="col-important name">${memberfriend.nick_name}</span>的邀请，加入友米乐！</p>
            <p class="envelope"><img src="/img/envelope.png" alt="" /></p>
            <p class="go-download">你的账号为<span class="col-important">${memberInfo.tel}</span>，<br />去下载应用，享受更多乐趣!</p>
            <p class="btn-join">
				<button onclick="fn_download_app()" style="font-size:16px;">
					<img src="/img/arrow_download.png" alt="" class="arrow-download po-r" />下载
					<img src="/img/arrow-left.png" alt="" class="arrow-brackets" />友米乐
					<img src="/img/arrow-right.png" alt=""  class="arrow-brackets mar-l"  />APP
				</button>
			</p>
        </div>
    </div>

<script type="text/javascript">    
function checkPlatform(){
	
	var app_download_url_android = $("#app_download_url_android").val();
	var app_download_url_ios = $("#app_download_url_ios").val();
	
	if(/android/i.test(navigator.userAgent)){
		$("#fn_download_app_url").val(app_download_url_android);
	}
	if(/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)){
		$("#fn_download_app_url").val(app_download_url_ios);
	}
/* 	if(/Linux/i.test(navigator.userAgent)){
		document.write("This is Linux'browser.");*//*这是Linux平台下浏览器
	}
	if(/Linux/i.test(navigator.platform)){
		document.write("This is Linux operating system.");*//*这是Linux操作系统平台
	}
	if(/MicroMessenger/i.test(navigator.userAgent)){
		document.write("This is MicroMessenger'browser.");*//*这是微信平台下浏览器
	} 
	

	function goodDetailLink(good_id){
	    
	       if(/android/i.test(navigator.userAgent) && "undefined" != typeof android){
	         android.openPage('com.uniplaza.fenx.mall.activity.GoodsDetailsActivity:::gId->'+good_id);
	       }
	       if(/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent) && "undefined" != typeof window.webkit.messageHandlers.ios_open_page){
	         window.webkit.messageHandlers.ios_open_page.postMessage('ProductDetailViewController:::goodId->'+good_id);
	       }
	  
	  if(("undefined" == typeof window.webkit && "undefined" == typeof android) || ("undefined" == typeof window.webkit.messageHandlers.ios_open_page)){
	    location.href = 'https://m.uniplaza.com/goodDetail?good_id='+good_id; 
	  }
	  
	    }     

	
	
	
	*/
}
$(document).ready(function(){
    checkPlatform();
  });  
  

</script>